class UpdateClientAppModel {
  final String? applicationName;
  final String? description;
  final String? homepageUrl;
  final List<String>? redirectUris;
  final String? logoUrl;
  final bool? isActive;

  UpdateClientAppModel({
    this.applicationName,
    this.description,
    this.homepageUrl,
    this.redirectUris,
    this.logoUrl,
    this.isActive,
  });

  factory UpdateClientAppModel.fromJson(Map<String, dynamic> json) {
    return UpdateClientAppModel(
      applicationName: json['applicationName'] as String?,
      description: json['description'] as String?,
      homepageUrl: json['homepageUrl'] as String?,
      redirectUris: (json['redirectUris'] as List?)?.map((e) => e as String).toList(),
      logoUrl: json['logoUrl'] as String?,
      isActive: json['isActive'] as bool?,
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'applicationName': applicationName,
      'description': description,
      'homepageUrl': homepageUrl,
      'redirectUris': redirectUris,
      'logoUrl': logoUrl,
      'isActive': isActive,
    };
  }
}